<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="com.exam.domain.*"%>
     <%@ page import="java.util.*"%>
     <%@ page import="app.mybean.*"%>
    <%Student stu= (Student)session.getAttribute("stuinfo"); 
     List<Exam> exam=Manager.getInstance().ListStudentExam(stu.getS_id());
     System.out.println(exam.size());
     System.out.println( stu.getS_id());
    %>
    <%String param=(String)request.getParameter("param"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>E-Exam</title>
<link rel="stylesheet" href="2col_leftNav.css" type="text/css" />
<style type="text/css">
<!--
.STYLE2 {font-size: medium}
.STYLE3 {
	color: #334d55;
	font-size: large;
	font-weight: bold;
}
body {
	background-color: #FFFFFF;
}
-->
</style>
</head>
<!-- The structure of this file is exactly the same as 2col_rightNav.html;
     the only difference between the two is the stylesheet they use -->
<body>
<div id="masthead">
  <h1 id="siteName"><img src="e-exam.gif" width="578" height="126" /></h1>
  <div class="relatedLinks" id="globalNav">
    <h1>欢迎来到在线考试系统, <%=stu.getS_name()%>同学.</h1>
  </div>
</div>
<!-- end masthead -->
<div id="content">
  <div id="breadCrumb"> <a href="student.html">学生首页</a> / <a href="about.html">关于系统</a> / <a href="about.html">联系我们</a> / </div>
  <h2 id="pageName">学生首页</h2>
  <div class="feature">
 <h2 id="pageName"><a href="information.html">最新公告</a></h2>
   <%if(exam.size()!=0)
    {
   %>
   <table width="555" border="0" cellspacing="5">
   <%
   for(Iterator<Exam> iter=exam.iterator();iter.hasNext();)
   {
   	Exam aexam=iter.next();
    %>
  <tr>
    <td width="543"><%=aexam.getCourse_name() %>课程的<%=aexam.getExam_name()%>将在<%=aexam.getBegin_time() %>开始</td>
  </tr>
<%} %>
</table>
<%} %>
  </div>
  
</div>
<!--end content -->
<div id="navBar">
  <div id="search">
    <form action="#">
      <label></label>
    </form>
  </div>
  <div id="sectionLinks">
    <ul>
      <li><a href="stu_testcenter.jsp">在线考试</a></li>
      <li><a href="stu_coursecenter.jsp">我的课程</a></li>
      <li><a href="#personal">个人设定</a></li>
      <li><a href="index.jsp">退出</a></li>
    </ul>
  </div>
  <div class="relatedLinks">
    <h3><span class="STYLE2"><img src="title.gif" width="86" height="47" /></span></h3>
    <h3>在线考试<a name="test" id="test"></a></h3>
    <ul>
      <li><a href="stu_testcenter.jsp">进入考场</a></li>
      <li><a href="stu_testcenter.jsp">查看考试信息</a></li>
      <li><a href="stu_testcenter.jsp">模拟考试</a></li>
      <li></li>
    </ul>
  </div>
  <div class="relatedLinks">
    <h3><span class="STYLE2"><img src="title.gif" width="86" height="47" /></span></h3>
    <h3>我的课程<a name="course" id="course"></a></h3>
    <ul>
      <li><a href="stu_coursecenter.jsp">课程查询</a></li>
      <li><a href="stu_coursecenter.jsp">成绩查询</a></li>
      <li><a href="stu_coursecenter.jsp">复习知识点</a></li>
    </ul>
  </div>
  <div id="advert"></div>
  <div id="relatedLinks">
<h3><span class="STYLE2"><img src="title.gif" width="86" height="47" /></span></h3>
    <h3> 个人设定<a name="personal" id="personal"></a></h3>
    <ul>
      <li><span class="STYLE2"><a href="stu_personal.jsp">修改基本信息</a></span></li>
    </ul>
    <h3 class="STYLE2">&nbsp;</h3>
    <p><a href="index.jsp" class="STYLE3"></a></p>
  </div>
</div>
<!--end navbar -->
<div id="siteInfo"> <img src="title.gif" width="90" height="46" /> <a href="about.jsp">About Us</a> | <a href="about.jsp">Online Help</a>| <a href="about.jsp">Contact Us</a> | &copy;2011 E-EXAM.co.ltd </div>
<br/>
<script  type="text/javascript">
if(<%=param%>==6)	alert("修改成功！");	
</script>
</body>
</jsp>
